<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" th:with="bgConfig=${@configTag.getConfigValueMap('butgo')}">

<head th:if="${category!=null}">
	<th:block th:include="butgo/bg_include :: bg_head(title=${category.remark+' - '+bgConfig['oly.web.title']},
   keywords=${category.keywords},
description=${category.description},
bgConfig=${bgConfig})" />
</head>

<head th:if="${category==null}">
	<th:block th:include="butgo/bg_include :: bg_head(title=${'你求的分类没有找到 - '+bgConfig['oly.web.title']},
keywords='分类不存在,分类不被支持',
description='分类不存在或者不被支持,也有可能是服务器问题',
bgConfig=${bgConfig})" />
</head>

<body>
	<th:block th:include="butgo/bg_include ::bg_side_bar" />
	<div class="page" id="body-wrap" th:if="${category!=null}">
		<th:block
			th:include="butgo/bg_include :: bg_header_category(siteTitle=${'分类-'+category.categoryName},siteImg=@{/static/butgo/images/thumbs/0.jpg},category=${category})" />
		<main class="layout" id="content-inner" style="height: auto !important;">
			<th:block
				th:include="butgo/bg_include :: bg_page_post_other(pageArticle=${@articleTag.pageArticleByCategoryId('butgo',category.categoryId,pageNum==null?1:pageNum,10)},page='category',id=${category.categoryId})" />
			<th:block th:include="butgo/bg_include :: bg_right_aside" />
		</main>
	</div>
	<th:block th:if="${category==null}"
		th:include="butgo/bg_include :: bg_404_page(errTitle='分类不存在或者不被支持',errContent='分类不存在或者不被支持,请稍后再试')" />
	<th:block th:include="butgo/bg_include :: bg_right_tool" />
	<th:block th:include="butgo/bg_include :: bg_local_search" />
	<th:block th:include="butgo/bg_include :: bg_js" />
</body>

</html>